/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023.
 * Description: ioctl of fast notification for hpvisor
 * Author: liwugui <liwugui1@huawei.com>
 * Create: 2023-11-16
 */

#ifndef LINUX_HPVISOR_H
#define LINUX_HPVISOR_H

struct hpvisor_chn_xid {
	int32_t pid; /* process id */
	int32_t uid; /* user id of task */
	int32_t gid; /* group id of task */
};

int vnotify_get_vmctrl_xid(struct hpvisor_chn_xid *chn_xid_p);

int um_ioctl_vnotify_mem_init(unsigned int chn_nr);
int um_vnotify_mem_init(unsigned int stride_chn_nr, unsigned int max_stride_nr);

#endif
